<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cr&eacute;ation d'un sondage - <fmt:message
	key="appTitle" /></title>
<link rel="stylesheet" type="text/css"
	href='<c:url value="/styles/base.css" />' />
<link rel="stylesheet" type="text/css"
	href='<c:url value="/styles/charte.css" />' />
</head>
<body>

<div id="global"><jsp:include page="header.jsp" /> <jsp:include
	page="menu.jsp" />

<div id="contenu">

<c:choose>
	<c:when test="${modification==true}"><h2>Modidication du sondage</h2></c:when>
	<c:otherwise><h2>Cr&eacute;ation d'un sondage</h2></c:otherwise>
</c:choose>

<form:form method="post" commandName="newSurveyForm">
	<table>
		<tr>
			<td>Titre :</td>
			<td><form:input path="title" /></td>
			<td><form:errors path="title" cssClass="errorMsg" /></td>
		</tr>
		<tr>
			<td valign="top">Description :</td>
			<td><form:textarea path="description" /></td>
			<td><form:errors path="description" cssClass="errorMsg" /></td>
		</tr>
		<tr>
			<td>Confidentialité :</td>
			<td><form:select path="confidentiality">
				<c:forEach var="conf"
					items="<%=faf.entities.Confidentiality.values()%>">
					<c:choose>
						<c:when test="${conf=='PRIVATE'}">
							<form:option value="${conf}">Privé</form:option>
						</c:when>
						<c:when test="${conf=='SEMIPRIVATE'}">
							<form:option value="${conf}">Semi-public</form:option>
						</c:when>
						<c:otherwise>
							<form:option value="${conf}">Puclic</form:option>
						</c:otherwise>
					</c:choose>
				</c:forEach>
			</form:select></td>
		</tr>
		<tr>
			<td>Statut :</td>
			<td><form:select path="open">
				<form:option value="false">Fermé</form:option>
				<form:option value="true">Ouvert</form:option>
			</form:select></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="Valider"></td>
			<td></td>
		</tr>
	</table>
	<br>
</form:form></div>

<jsp:include page="footer.jsp" /></div>
</body>
</html>